#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.auth;

import ${package}.common.bean.vo.AddRoleVo;
import ${package}.common.bean.vo.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description: openfeign调用角色模块demo服务接口
 *
 * @author songcx
 * @date 2019/8/21 10:15
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
@FeignClient(name = "${prefix}-auth")
public interface YkAuthRoleDemoClient {

    /**
     * Description:
     * <新增角色>
     * @author songcx
     * @date 13:46 2019/8/21
     * @param addRoleVo 1
     * @return JsonResult
     **/
    @PutMapping(value = "/yk_api/role/addRole",consumes = "application/json")
    JsonResult addRole(@RequestBody AddRoleVo addRoleVo);

    /**
     * Description:
     * <查询是否重复名称>
     * @author songcx
     * @date 13:46 2019/8/21
     * @param name 1
     * @param id 2
     * @return JsonResult<java.lang.Boolean>
     **/
    @GetMapping(value = "/yk_api/role/roleVerifyName",consumes = "application/json")
    JsonResult<Boolean> roleVerifyName(@RequestParam(value = "name") String name, @RequestParam(value = "id") Long id);
}
